# -*- coding: utf-8 -*-
"""
Created by edc on 2020/8/10
"""
from hdfs import  InsecureClient
client = InsecureClient("http://172.16.1.127:50070",
                        root="/",
                        # proxy="root",
                        user="root",
                        )

client.makedirs("/data")
client.upload("/data","/home/xll/avazu-ctr-train-8M.csv")
client.upload("/data","/home/xll/avazu-small.csv")
client.upload("/data","/home/xll/exampleData.csv")
client.upload("/data","/home/xll/iris.csv")